package ExtendsStudy.demo_04;

public class Demo1 {
    public static void main(String[] args) {
        USB c = new Computer();
    }
}

class Computer implements USB{

    @Override
    public void connect() {
        System.out.println("连接USB");
    }

    @Override
    public void disconnect() {
        System.out.println("断开USB");
    }
}

interface USB{
    void connect();
    void disconnect();
}
